using System; 
using System.Collections.Generic; 
using System.Text; 
using FluentNHibernate.Mapping;

namespace SHKurzy.Domain {
    
    
    public class StatyMap : ClassMap<Stat> {
        
        public StatyMap() {
			Table("Staty");
			LazyLoad();
			Id(x => x.ID).GeneratedBy.Identity().Column("ID");
			Map(x => x.Zkratka).Column("Zkratka").Not.Nullable().Length(2);
			Map(x => x.Jmeno).Column("Jmeno").Not.Nullable().Length(50);
			Map(x => x.JmenoDlouhe).Column("JmenoDlouhe").Not.Nullable().Length(50);
			HasMany(x => x.OsobySet).KeyColumn("StatID");
        }
    }
}
